Noemax FastInfoset.NET
Init(Byte[],Int32,Int32,FastInfosetCompression) Method
See Also  Send Feedback
Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > Init Method : Init(Byte[],Int32,Int32,FastInfosetCompression) Method






input

The an array of bytes containing the Fast Infoset encoded XML data to read.

offset

The offset in the array of bytes to start reading from.

length

The number of byte starting from the offset that contain FastInfoset encoded XML data.

compression
The compression algorithm to decompress the data.
Initializes an instance of the XmlFastInfosetReader class.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Init( _
   ByVal input() As Byte, _
   ByVal offset As Integer, _
   ByVal length As Integer, _
   ByVal compression As FastInfosetCompression _
) 
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim input() As Byte
Dim offset As Integer
Dim length As Integer
Dim compression As FastInfosetCompression
 
instance.Init(input, offset, length, compression)
C# 
public void Init( 
   byte[] input,
   int offset,
   int length,
   FastInfosetCompression compression
)
Delphi 
public procedure Init( 
    input: Bytearray of;
    offset: Integer;
    length: Integer;
    compression: FastInfosetCompression
); 
JScript 
public function Init( 
   input : byte[],
   offset : int,
   length : int,
   compression : FastInfosetCompression
);
Managed Extensions for C++ 
public: void Init( 
   byte[]* input,
   int offset,
   int length,
   FastInfosetCompression compression
) 
C++/CLI 
public:
void Init( 
   array<byte>^ input,
   int offset,
   int length,
   FastInfosetCompression compression
) 

Parameters

input

The an array of bytes containing the Fast Infoset encoded XML data to read.

offset

The offset in the array of bytes to start reading from.

length

The number of byte starting from the offset that contain FastInfoset encoded XML data.

compression
The compression algorithm to decompress the data.

Remarks

Initializes the reader and sets it to use the provided array of bytes as input.

This method allows the reuse of the XmlFastInfosetReader for reading from another source.

See Also